From: Colomban Wendling Date: Mon, 20 Feb 2017 16:39:40 +0000 (+0100) Subject: Fix updating the widget accessible description when using its tooltip X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~128 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=75768a4d0097c1892a4cb0f634d76fdc7b400664;p=gtk%2B3.0.git Fix updating the widget accessible description when using its tooltip We need to notify ATK the description changed when the tooltip text associated with the widget changes and gtk_widget_accessible_get_description() would use it as the description. https://bugzilla.gnome.org/show_bug.cgi?id=779009 --- diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c index ffa42a278a..3b44abaa26 100644 --- a/gtk/a11y/gtkwidgetaccessible.c +++ b/gtk/a11y/gtkwidgetaccessible.c @@ -483,6 +483,9 @@ gtk_widget_accessible_notify_gtk (GObject *obj, { gtk_widget_accessible_update_tooltip (GTK_WIDGET_ACCESSIBLE (atk_obj), widget); + + if (atk_obj->description == NULL) + g_object_notify (G_OBJECT (atk_obj), "accessible-description"); return; } else if (g_strcmp0 (pspec->name, "visible") == 0)